#include "Socket.hpp"
#include <iostream>
#include <memory>
#include <sys/wait.h>
#include <functional>

using namespace SocketModule;
using namespace LogModule;
using namespace std;
using ioservice_t = function<void(shared_ptr<Socket>& sock,InetAddr &client)>;

class TcpServer
{
    public:
    private:
    uint16_t _port;
    unique_ptr<Socket>_listensockptr;
    bool _isrunning;
    ioservice_t _service;
};